package com.apimarket.controller;

import com.apimarket.entity.ApiInterfaceWithBLOBs;
import com.apimarket.entity.ApiSet;
import com.apimarket.entity.PageModel;
import com.apimarket.entity.Result;
import com.apimarket.entity.kong.Route;
import com.apimarket.entity.vo.ApiInterfaceWithBOLOBsPath;
import com.apimarket.entity.vo.ApiSetInterfaces;
import com.apimarket.service.ApiService;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.validation.Valid;
import java.io.IOException;
import java.net.URISyntaxException;
import java.util.List;

@Controller
@RequestMapping("/")
public class PageController {
//    @RequestMapping("menu/menu_list")
//    public String doMenuUI() {
//        return "sys/menu_list";
//    }
//
//    @RequestMapping("{module}/{moduleUI}")
//    public String doModuleUI(@PathVariable String moduleUI) {
//        return "sys/"+moduleUI;
//    }

    @RequestMapping("doIndexUI")
    public String doIndexUI(){
        return "starter";
    }

    @RequestMapping("{module}/{moduleUI}")
    public String doModuleUI(@PathVariable String moduleUI) {
        return "sys/"+moduleUI;
    }


}
